#ifndef CLASSSPECIALABLILITIES_H
#define CLASSSPECIALABLILITIES_H
#include "dtwenty_global.h"


#include <data.h>


#include <QMetaType>


class DTWENTYSHARED_EXPORT ClassSpecials : public Collection
{
    Q_OBJECT

public:
    enum Field
    {
        Field_FIRST = 0,

        Field_LEVEL = Field_FIRST,
        Field_SPECIAL,

        Field_LAST = Field_SPECIAL
    };

    Q_INVOKABLE ClassSpecials(QObject *parent = 0) :
        Collection(QT_TR_NOOP("Class Special Abilities"), parent)
    {
    }

    ClassSpecials(const ClassSpecials& other) :
        Collection(other)
    {
    }

    Q_INVOKABLE virtual void onInitialize()
    {
        setField(Field_LEVEL, QT_TR_NOOP("Level"));
        setField(Field_SPECIAL, QT_TR_NOOP("Special"));

        MetaItem* item = metaData()->item(Field_SPECIAL);
        item->setOptionRef("Special Abilities");
    }
};


Q_DECLARE_METATYPE(ClassSpecials*)


#endif // CLASSSPECIALABLILITIES_H
